<!--
描述：库房
开发人：zangyanming
开发日期：2018年8月7日
-->
<template lang="pug">
    kalix-dialog.user-add(bizKey="bookShelf" ref="kalixBizDialog" v-bind:formModel.sync="formModel" isView)
        div.el-form(slot="dialogFormSlot")
            el-form-item(label="代码" prop="code" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.code" readonly)
            el-form-item(label="所属校区" prop="sarea" v-bind:label-width="labelWidth")
                <!--el-input(v-model="formModel.sarea" readonly)-->
                kalix-object-select2(v-model="formModel.sarea" v-bind:objectsUrl="schoolZoneURL" v-bind:label="'zwmc'" disabled)
            el-form-item(label="所属库房" prop="rcode" v-bind:label-width="labelWidth")
                <!--el-input(v-model="formModel.rcode" readonly)-->
                kalix-object-select2(v-model="formModel.rcode" v-bind:objectsUrl="bookRoomURL" v-bind:label="'name'" disabled)
            el-form-item(label="书架号" prop="user_code" v-bind:label-width="labelWidth")
                el-input(v-model="formModel.user_code" readonly)
</template>

<script type="text/ecmascript-6">
    import FormModel from './model'
    import {schoolZoneURL,BookRoomURL} from '../../config.toml'


    export default {
        name: 'BookShelfView',
        data() {
            return {
                formModel: Object.assign({}, FormModel),
                schoolZoneURL: schoolZoneURL,
                bookRoomURL: BookRoomURL,
                labelWidth: '140px'
            }
        },
        methods: {
        }
    }
</script>
